<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素的显示方式</title>
    <style>
        div {
            width: 200px;
            height: 100px;
            border: 3px solid red;
            display: block;
        }

        span{
            width: 200px;
            height: 100px;
            background-color: lightgreen;
            border: 3px dotted blue;
            display: inline;
            display: block;
        }
    </style>
</head>
<body>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
<hr>
<span>123456789</span>
<span>12345678fdeoiwryofiewfiw9</span>
<span>123456789</span>
<hr>
<input type="text">
<input type="text">
<input type="text">
<button>按钮</button>
</body>
</html>